#include<iostream>
#include<sstream>
#include<string.h>

using std::cout;
using std::endl;
using std::string;
using std::cin;

int main(void)
{
    string str;
    while(std::getline(cin,str))
    {
    std::istringstream iss(str);
    int num;
    string word;
    iss>>num;
    if(iss.fail())
    {
        cout<<"重新输入"<<endl;
        continue;
    }
        iss>>word;

    if(iss.fail())
    {
        iss.clear();
        cout<<"无问题"<<endl;
        cout<<str<<endl;
        break;
    }
    else 
    {
        cout<<"重新输入"<<endl;
    }
    }
}

